Solving Multiple Square Jigsaw Puzzles with Missing Piece
نویسندگان
چکیده
Puzzle solving is important in many applications, such as image editing [1], biology [5] and archaeology, to name a few. This work focuses on puzzles with square pieces. The problem is introduced by [2], where a greedy algorithm, as well as a benchmark, are proposed. The algorithm discussed in [8] improves the results by using a particle filter. Pomeranz et al. [6] introduce the first fully-automatic square jigsaw puzzle solver that is based on a greedy placer and on a novel prediction-based dissimilarity. Gallagher [3] generalizes the method to handle parts of unknown orientation. Son et al. [4] demonstrate a considerable improvement for the case of unknown orientation, by adding "loop constraints" to [3]. Rather than pursuing a greedy solver, Sholomon et al. [7] present a genetic algorithm that is able to solve large puzzles. Our work is inspired by [6]. However, it takes the next step and not only improves upon the state-of-the-art results, but also solves puzzles with additional challenges. In particular, it handles puzzles with missing pieces, unknown size, and unknown orientation of the parts. Moreover, it concurrently solves multiple jigsaw puzzles whose pieces are mixed together, where neither the size of the puzzles nor a priori knowledge regarding possible missing pieces is given. This is illustrated in Figure 1, where more than 5000 pieces that belong to five different puzzles, some with many missing pieces, are given, and our algorithm reconstructs them faultlessly. Like [3, 6], our algorithm is greedy. However, it incorporates three key ideas, which not only prove beneficial for solving traditional puzzles, but also support the additional requirements mentioned above. First, similarly to previous methods, our placement is based on the compatibility between pieces. We propose a more accurate and faster compatibility function, which takes advantage both of the similarity between the pieces, and of the reliability of this similarity. Intuitively, the reliability will be low for smooth areas, which should not be handled at early stages. Second, since greedy solvers are extremely vulnerable to the initial placement, we take special care when choosing the first piece. We require it to have distinctive borders and to be located in a distinctive region. Third, rather than choosing the best piece for a specific location, we select the piece that minimizes the likelihood of erring, regardless of its location. The idea is that the absolute location of a piece should be determined only when all the pieces found their neighbors. This is very similar to the way people solve puzzles. As a result, our algorithm is deterministic, conversely to previous approaches, which make random choices and are thus sensitive either to the selection of the first piece or to an initial random solution. This means that it suffices to run our algorithm only once. To evaluate our algorithm, we apply our puzzle solver to the datasets of [2, 6, 7]. We first quantitatively compare our results to those of previous works [4, 6, 7] when applied to the traditional jigsaw puzzle problem, where the size of puzzle is known and there are no missing pieces. Our method outperforms the state-of-the-art methods, both in accuracy and in efficiency. For instance, it achieves accuracy of 97.7% on the dataset of [7], which consists of very large jigsaw puzzles, whereas [7] achieves 96.41%. This is done while accelerating the running times by a factor of 60-120. Then we test our algorithm qualitatively on additional cases, including puzzles of unknown size, puzzles with missing pieces, and mixed puzzles. We show that our algorithm reconstructs the images well in various cases, including challenging mixed pieces from similar images. Our contribution is hence a novel and efficient puzzle solver, which produces good results even when the input consists of pieces from multiple puzzles, each has missing pieces and unknown size. This may be the case not only in everyday situations, but also in archaeology, where torn documents or broken artifacts are found mixed and lack parts.
منابع مشابه
An Improved Heuristic-based Approach for Solving Square Jigsaw Puzzles
An algorithm for assembling square jigsaw puzzles is presented. We commence by introducing criteria that govern the selection of proper jigsaw puzzle solving method for a given application. Our algorithm uses the gray level profiles of border pixels for local matching of the puzzle pieces. Unlike the classical best-first search, the algorithm simultaneously locates the neighbors of a puzzle pie...
متن کاملLAJANUGEN LOGESWARAN : SOLVING JIGSAW PUZZLES USING PATHS AND CYCLES 1 Solving Jigsaw Puzzles using Paths and Cycles
There has been a growing interest in image jigsaw puzzles with square shaped pieces. A solver takes as input square shaped patches of the same size belonging to an image and attempts to reconstruct the image. The key components of a jigsaw solver are a compatibility metric and an assembly algorithm. A compatibility metric uses the color content of the image patches to identify which pairs of pi...
متن کاملSolving Square Jigsaw Puzzles Using Dynamic Programming and the Hungarian Procedure
Problem statement: To design, implement, and test an algorithm for solving the square jigsaw puzzle problem, which has many applications in image processing, pattern recognition, and computer vision such as restoration of archeological artifacts and image descrambling. Approach: The algorithm used the gray level profiles of border pixels for local matching of the puzzle pieces, which was perfor...
متن کاملA Generalized Genetic Algorithm-Based Solver for Very Large Jigsaw Puzzles of Complex Types
In this paper we introduce new types of square-piece jigsaw puzzles, where in addition to the unknown location and orientation of each piece, a piece might also need to be flipped. These puzzles, which are associated with a number of real world problems, are considerably harder, from a computational standpoint. Specifically, we present a novel generalized genetic algorithm (GA)based solver that...
متن کاملSolving Square Jigsaw Puzzles with Loop Constraints
We present a novel algorithm based on “loop constraints” for assembling non-overlapping square-piece jigsaw puzzles where the rotation and the position of each piece are unknown. Our algorithm finds small loops of puzzle pieces which form consistent cycles. These small loops are in turn aggregated into higher order “loops of loops” in a bottom-up fashion. In contrast to previous puzzle solvers ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2015